<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="备份恢复任务失败，任务一定时间内进度未更新或错误详情包含“执行业务子任务失败”">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="fc_gud_0064.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="fc_gud_0076">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>备份恢复任务失败，任务一定时间内进度未更新或错误详情包含“执行业务子任务失败”</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="fc_gud_0076"></a><a name="fc_gud_0076"></a>

<h1 class="topictitle1">备份恢复任务失败，任务一定时间内进度未更新或错误详情包含“执行业务子任务失败”</h1>
<div><div class="section"><h4 class="sectiontitle">现象描述</h4><p><span>OceanProtect</span>界面上提示任务一定时间内进度未更新或错误详情包含“执行业务子任务失败”。当提示“执行业务子任务失败”时，单击“查看详情”，详情信息中包含Error doing sync read from disk或Failed during data mover。客户端的虚拟化插件日志里与socket相关的日志会打印错误码11（Resource temporarily unavailable），并且三次重试后仍备份或恢复失败。</p>
</div>
<div class="section"><h4 class="sectiontitle">可能原因</h4><p>FusionCompute 8.3.0之前版本会存在多个socket并发执行，将socket存放在map里，循环查找socket的方式使用了[]而不是get，当某个socket找不到时会报错，导致主线程循环报这个错，卡住正常socket的读写。</p>
</div>
<div class="section"><h4 class="sectiontitle">处理步骤</h4><ol><li id="fc_gud_0076__li1651535902912"><span>登录FusionCompute生产环境CNA主机。</span></li><li id="fc_gud_0076__li877652799"><span>执行<strong id="fc_gud_0076__b46962458913">su - root</strong>命令，切换到<strong id="fc_gud_0076__b7459362090">root</strong>用户。</span></li><li><span>执行以下命令，按照下图红框中的内容修改查找socket的方式。</span><p><p><strong>vim /usr/lib/</strong>python<em>X.X</em><strong>/site-packages/vna/storage/utils/socket_server.py</strong></p>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul><li>命令中的<em>python</em><em>X.X</em>请根据实例的python版本替换。</li><li>当系统中同时安装了多个版本的python时，请查找出存在<strong>/site-packages/vna/storage/utils/socket_server.py</strong>路径的python版本，再执行此命令。</li></ul>
</div></div>
<div class="p">将以下内容修改至下图红框位置：<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p>修改内容中的缩进请使用空格进行缩进，请勿使用Tab键，否则会导致修改失败。</p>
</div></div>
<pre class="screen">socket = fd_to_socket.get(fd)
if not socket:
    continue</pre>
</div>
<p><span><img src="zh-cn_image_0000002164606402.png"></span></p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="fc_gud_0064.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>